import Vue from 'vue'
import VueRouter from 'vue-router'
import Home from '../views/Home.vue'
import Login from "../views/Login";
import WelCome from "../views/WelCome";
import User from "../views/User";
import Role from "../views/Role";
import Permission from "../views/Permission";
import Remark from "../views/Remark";
import Tag from "../views/Tag";
import RemarkReport from "../views/report/RemarkReport";
import ResourceReport from "../views/report/ResourceReport";
import Manager from "../views/Manager";
import buyDetail from "../views/BuyDetail";
import Resource from "../views/Resource/Resource";
import Slideshow from "../views/Slideshow";

Vue.use(VueRouter)

const routes = [
  {path: '/', name: 'login', component: Login},
  {path: '/Login', name: 'Login', component: Login},
  {path: '/Home', name: 'Home', component: Home,
    children:[
      {path:'/',component:WelCome},
      {path: '/User',component:User},
      {path: '/Role',component: Role},
      {path: '/Permission',component: Permission},
      {path: '/remark',component: Remark},
      {path:'/tag',component: Tag},
      {path: '/manager',component: Manager},
      {path: '/buyDetail',component: buyDetail},
      {path: '/RemarkReport',component: RemarkReport},
      {path: '/ResourceReport',component: ResourceReport},
      {path: '/manager',component: Manager},
      {path: '/resource',component: Resource},
      {path: '/Slideshow',component: Slideshow}
    ]
  }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
